package com.yishusmt.mobsmt.check;

import com.yishusmt.mobsmt.advice.HandleException;
import lombok.extern.slf4j.Slf4j;

/**
 * 数据校验检查
 *
 * @author zhangyi
 * @date 2018/8/10 14:00
 */
@Slf4j
public class DataCheck {
    public static void isNull(Object o){
        if(o == null? true : false){
            throw new HandleException("996","数据不能为空！");
        }
    }
}
